<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>angularJs进阶</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.css" rel="stylesheet">
</head>
<body ng-app="" style="padding: 10px;;">
    <div ng-cloak class="ng-cloak">
       <input type="text"  ng-model="userName">
        <h5>{{userName}}</h5>
        <h2 ng-bind="userName"></h2>
        <div class="{{userName}}">{{userName}}</div>
    </div>
</body>
<script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
</html>